package com.zide.ams.domain.vo.result;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;
import java.util.*;
import java.time.LocalDateTime;


/**
 * 文章评论对象 ams_comment
 * 
 * @author zide
 * @date 2024-04-29
 */
@Data
@Schema(name = "出参 - 文章评论对象 ams_comment")
public class AmsCommentResultVO{
    private static final long serialVersionUID = 1L;

    @Schema(description = "ID")
    private Long id;

    @Schema(description = "评论人ID")
    private Long userId;

    @Schema(description = "评论人头像")
    private String avatar;

    @Schema(description = "评论人昵称")
    private String nickname;

    @Schema(description = "文章id")
    private Long articleId;

    @Schema(description = "内容")
    private String content;

    @Schema(description = "回复人id")
    private String replyUserId;

    @Schema(description = "父id")
    private Long parentId;

    @Schema(description = "评论时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime createTime;

    @Schema(description = "${column.columnComment}")
    private String browser;

    @Schema(description = "${column.columnComment}")
    private String browserVersion;

    @Schema(description = "${column.columnComment}")
    private String systemOS;

    @Schema(description = "${column.columnComment}")
    private String systemVersion;

    @Schema(description = "ip地址")
    private String ipAddress;

    @Schema(description = "回复")
    private List<AmsCommentResultVO> children = new ArrayList<>();
}
